/*
 * =====================================================================================
 *
 *       Filename:  ndk_demo.c
 *
 *    Description: NDK testing
 *
 *        Version:  1.0
 *        Created:  01/18/2015 16:17:43
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  YOUR NAME (), 
 *   Organization:  
 *
 * =====================================================================================
 */

#include "./com_example_ndktest_NativeLib.h"

JNIEXPORT jint JNICALL Java_com_example_ndktest_NativeLib_add
    (JNIEnv *env, jobject obj, jint v1, jint v2) {
    return v1 + v2;
}

JNIEXPORT jstring JNICALL Java_com_example_ndktest_NativeLib_hello
    (JNIEnv *env, jobject obj) { 
    return (*env)->NewStringUTF(env,"Hello World!"); 
}


